package com.xxx.study.designmodel.h生成器模式;

public abstract class Product {

    private String head;

    private String body;

    private String foot;

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getFoot() {
        return foot;
    }

    public void setFoot(String foot) {
        this.foot = foot;
    }

    public Product(String head, String body, String foot) {
        this.head = head;
        this.body = body;
        this.foot = foot;
    }

    public abstract String getProductType();

    @Override
    public String toString() {
        return  this.head+"\\n" + this.body + "\\n" + this.foot + "\\n" + getProductType();
    }
}
